package com.ywqf_api.common.datatables;

import java.util.List;

public class PagingData<T> {
	private List<T> data;
	private int draw;
	private int recordsTotal;
	private int recordsFiltered;
	
	public PagingData(List<T> data, int draw, int recordsFiltered) {
		this.data = data;
		this.draw = draw;
		this.recordsTotal = recordsFiltered;
		this.recordsFiltered = recordsFiltered;
	}
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
	public int getDraw() {
		return draw;
	}
	public void setDraw(int draw) {
		this.draw = draw;
	}
	public int getRecordsTotal() {
		return recordsTotal;
	}
	public void setRecordsTotal(int recordsTotal) {
		this.recordsTotal = recordsTotal;
	}
	public int getRecordsFiltered() {
		return recordsFiltered;
	}
	public void setRecordsFiltered(int recordsFiltered) {
		this.recordsFiltered = recordsFiltered;
	}
	@Override
	public String toString() {
		return "PagingData [data=" + data + ", draw=" + draw
				+ ", recordsTotal=" + recordsTotal + ", recordsFiltered="
				+ recordsFiltered + "]";
	}
	
	
}
